package cn.hl.sfzy.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @ClassName CourseMark
 * @Description TODO
 * @Author libowen
 * @Date 2024年10月26日 11:29
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class CourseMark {
    //评价id
    private Long id;
    //评论内容
    private String content;
    //分数
    private int grade;
    //评价时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createTime;
    //用户id
    private Long user_id;
    //课程id
    private Long course_id;
    //用户
    private User user;
    //课程
    private Course course;

}
